<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var model_name = "/frontOrder";
var model_title="预订";
var datagrid;
var sexs=["男","女"];
var seatTypes=["座位","包间"];
var moneyStatus=["不需要","需要"];
	$(function() {
		datagrid=$('#form_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        {field:'shop_name',title:'商户名称'},
		        {field:'customer_phone',title:'客户手机',align:'right'},
		      	{field:'customer_name',title:'客户姓名',align:'right'},
		      	{field:'customer_sex',title:'客户性别',align:'right',
		      	formatter:function(value,row,index){
					return sexs[value];
				}},
		       	{field:'seat_type',title:'座位类型',align:'right',formatter:function(value,row,index){
					return seatTypes[value];
				}},
		       	{field:'front_money_status',title:'是否需要定金',align:'right',formatter:function(value,row,index){
					return moneyStatus[value];
				}},
		       	{field:'front_money',title:'定金金额',align:'right'},
		       	{field:'front_time',title:'预定时间',align:'right'}
		    ]]
		})
	})
	
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>

</head>
<#include "/common/seach.html" />
<@seach>
<td>客户姓名</td>
<td><input type="text" name="seachLike_customer_name"></li></td>
<td>客户手机号</td>
<td><input type="text" name="seachLike_customer_phone"></li></td>
</@seach>
</@layout>